package com.dayaokeji.server_api.api;

import com.dayaokeji.server_api.ServerResponse;
import com.dayaokeji.server_api.domain.School;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Gorden on 2017/9/28.
 * 学校信息相关API
 */

public interface SchoolApi {

    /**
     * 获取学校列表
     * @param level
     * @param name
     * @return
     */
    @GET("course/department/list")
    Call<ServerResponse<List<School>>> list(
            @Query("level") int level,
            @Query("name") String name
    );

    //获取院系
    @GET("course/department/list")
    Call<ServerResponse<List<School>>> department(
            @Query("parentId")long parentId
    );
}
